package com.zofer.study.factory.simplefactory;

public class FoodFactory {

    public static Food getFood(String name){
        if ("汉堡包".equals(name)){
            return new Hamburg();
        }else if ("可口可乐".equals(name)){
            return new CocaCola();
        }
        return null;
    }


}
